package com.chao.tlias.util;

/**
 * 线程工具类，对当前线程进行存入、取出、删除数据等操作
 */
public class CurrentHolder {
    private static  final ThreadLocal<Integer> CURRENT_LOCAL = new ThreadLocal<>();

    public static void setCurrent(Integer employeeId){
        CURRENT_LOCAL.set(employeeId);
    }
     public static Integer getCurrent(){
        return CURRENT_LOCAL.get();
    }
     public static void remove(){
        CURRENT_LOCAL.remove();
    }
}
